jQuery(document).ready(function(gtf) {
	
	gtf.noConflict();
	// on click tooltip with custom content  
    gtf('a.open_ratingbox').click(function() {
    	gtf('div#aToolTip').show();    	
    });
    


    gtf('#topic_add_button').click(function(e) {
    	//e.preventAll();
    	gtf.ajax({
    	    url : baseurl + "add_topic",
    	    type: "POST",
    	    data : gtf('#topic_adding_form').serialize(),
    	    success: function(data, textStatus, jqXHR) {
    	        alert('Successfully Added');
    	    },
    	    error: function (jqXHR, textStatus, errorThrown) {
    	    	alert('Offfffffff!');
    	    }
    	});
	
    });
});

function html(id, str){
	jQuery(id).html(str);	
}